# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=py3-pyld
pkgver=2.0.3
pkgrel=0
pkgdesc="JSON-LD processor written in Python"
url="https://pypi.org/project/PyLD/"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-cachetools
	py3-frozendict
	py3-lxml
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://github.com/digitalbazaar/pyld/archive/refs/tags/$pkgver/py3-pyld-$pkgver.tar.gz"
builddir="$srcdir/pyld-$pkgver"
options="!check" # need extra clones and networking

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
ec12274cf7b6b6842c054e7c78a74a36d60496377d329c821a930dcf2000a02f24b77263d20086cdd83d28c1be37ab0b0c785026c7b3bf44cc1a42597410e769  py3-pyld-2.0.3.tar.gz
"
